import request from '@/utils/request'

// 分页查询藏品信息
export function getCollectionsPage(params) {
    return request({
        url: '/collections/page',
        method: 'get',
        params
    })
}

// 新增藏品
export function addCollections(data) {
    return request({
        url: '/collections/add',
        method: 'post',
        data
    })
}

// 更新藏品信息
export function updateCollections(data) {
    return request({
        url: '/collections/update',
        method: 'post',
        data
    })
}

// 删除藏品
export function removeCollections(id) {
    return request({
        url: '/collections/removeById',
        method: 'delete',
        params: {id}
    })
}

// 获取精选藏品
export function getFeaturedCollections(params) {
    return request({
        url: '/collections/featured',
        method: 'get',
        params
    })
} 